package com.example.service.impl;

import com.example.domain.CultureProject;
import com.example.mapper.CultureMapMapper;
import com.example.service.CultureMapService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CultureMapServiceImpl implements CultureMapService {
    @Autowired
    private CultureMapMapper cultureMapMapper;

    @Override
    public PageInfo<CultureProject> queryCulture(CultureProject cultureProject, Integer currentPage, Integer pageSize) {
        PageHelper.startPage(currentPage, pageSize);
        List<CultureProject> list = cultureMapMapper.queryCulture(cultureProject);
        return PageInfo.of(list);
    }
}
